<template>
  <el-dialog :title="title" :visible="visible" :close-on-click-modal="false" @close="visible=false">
    <el-form
      ref="form"
      :model="entityData"
      :rules="rules"
      label-width="80px"
      label-position="right"
      style="width:90%;margin:0px auto;"
    >
      <!--表单区域 -->
      <el-form-item label="请求消息标识" prop="requestId">
        <el-input v-model="entityData.requestId" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求应用编码" prop="requestAppCode">
        <el-input v-model="entityData.requestAppCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求消息主题编码" prop="requestTopicCode">
        <el-input v-model="entityData.requestTopicCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求时间" prop="requestTime">
        <el-input v-model="entityData.requestTime" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="请求内容" prop="requestData">
        <el-input v-model="entityData.requestData" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应消息标识" prop="responseId">
        <el-input v-model="entityData.responseId" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应应用编码" prop="responseAppCode">
        <el-input v-model="entityData.responseAppCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应消息主题编码" prop="responseTopicCode">
        <el-input v-model="entityData.responseTopicCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应时间" prop="responseTime">
        <el-input v-model="entityData.responseTime" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应内容" prop="responseData">
        <el-input v-model="entityData.responseData" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="响应结果" prop="responseResult">
        <el-input v-model="entityData.responseResultName" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="错误编码" prop="errorCode">
        <el-input v-model="entityData.errorCode" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="错误信息" prop="errorMessage">
        <el-input v-model="entityData.errorMessage" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="当前状态" prop="status">
        <el-input v-model="entityData.statusName" :readonly="readonly" />
      </el-form-item>
      <el-form-item label="发送次数" prop="sendCount">
        <el-input v-model="entityData.sendCount" :readonly="readonly" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button v-show="saveButtonVisible" type="primary" @click="save">保存</el-button>
      <el-button @click="close">关闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { detailMixin } from '@/mixin/detailMixin'
const MODULE_CODE = 'cip'
const ENTITY_TYPE = 'apiMessageLog'
export default {
  name: ENTITY_TYPE + '-detail',
  mixins: [detailMixin],
  data() {
    return {
      entityType: ENTITY_TYPE,
      moduleCode: MODULE_CODE,
      // eslint-disable-next-line no-eval
      api: eval('this.$api.' + MODULE_CODE + '.' + ENTITY_TYPE),
      pageCode: MODULE_CODE + ':' + ENTITY_TYPE + ':',
      entityData: {

      },
      rules: {

      }
    }
  },
  methods: {

  }

}
</script>

<style lang="scss">
</style>
